package edu.sctu.zcy.month201507.summer2;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created by zcy on 2015/7/13.
 */
public class ProgramEntry {

    public static void main(String[] args) {

       int[] result = new SummerSecond().getResult(inputNumber());

        System.out.println("最大值为"+result[0]);
        System.out.println("最小值为"+result[1]);
    }



    public static List<Integer> inputNumber(){

        System.out.println("请输入10个数，并比较最大值和最小值：");

        Scanner number = new Scanner(System.in);

        List<Integer> integerList = new ArrayList<>();
        for (int i = 0; i < 10; i++) {

            integerList.add(number.nextInt());
        }

      return integerList;
    }
}
